package com.producer;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.google.common.util.concurrent.ServiceManager;

@Configuration

public class ProduerConfig  {

	

	  @Autowired
		private List<DataScanner> responseServiceList;
	  
	  @Bean(name="piwikProducerServiceManager")
	  public ServiceManager piwikProducerServiceManager(){
		  
		  return new ServiceManager(responseServiceList);
	  }
}
